<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>修改页面</title>
</head>
<body>
<form action="/user/update" method="post">

    <!--隐藏域,存储id-->
    <input type="hidden"  th:value="${user.id}" name="id" />
    <div class="form-group">
        <label for="username">姓名：</label>
        <input type="text" class="form-control" id="username" th:value="${user.username}" name="username" readonly="readonly" placeholder="请输入姓名"/>
    </div>

    <div class="form-group">
        <label for="password">密码：</label>
        <input type="password" class="form-control" id="password" th:value="${user.password}" name="password" placeholder="请输入密码"/>
    </div>

    <div class="form-group">
        <label for="birthday">出生年月：</label>
        <input type="date" class="form-control" id="birthday" th:value="${#dates.format(user.birthday,'yyyy-MM-dd')}" name="birthday"/>
    </div>

    <div class="form-group">
        <label for="address">住址：</label>
        <input type="text" class="form-control" id="address" th:value="${user.address}" name="address" placeholder="请输入地址"/>
    </div>

    <div class="form-group" style="text-align: center">
        <input class="btn btn-primary" type="submit" value="提交" />
        <input class="btn btn-warning" type="reset" value="重置" />
        <input class="btn btn-default" type="button" value="返回" />
    </div>
</form>
</body>
</html>